import request from '@/utils/request'

// 查询电能资产信息列表
export function listMdMeter(query) {
  return request({
    url: '/storage/mdMeter/list',
    method: 'get',
    params: query
  })
}

// 查询电能资产信息详细
export function getMdMeter(meterId) {
  return request({
    url: '/storage/mdMeter/' + meterId,
    method: 'get'
  })
}

// 新增电能资产信息
export function addMdMeter(data) {
  return request({
    url: '/storage/mdMeter',
    method: 'post',
    data: data
  })
}

// 修改电能资产信息
export function updateMdMeter(data) {
  return request({
    url: '/storage/mdMeter',
    method: 'put',
    data: data
  })
}

// 删除电能资产信息
export function delMdMeter(meterId) {
  return request({
    url: '/storage/mdMeter/' + meterId,
    method: 'delete'
  })
}
